package com.glut.library.entity;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;

/**
 * 
 *
 * @author stubborn
 * @since 2025-01-13 17:14
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("borrow_records")
public class BorrowRecords implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 借阅记录ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 用户名
     */
    private String username;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 书的ID
     */
    private Integer bookId;

    /**
     * 书名
     */
    private String bookName;

    /**
     * 出版社
     */
    private String publishingHouse;

    /**
     * 借阅审批状态
     */
    private String approvalStatus;

    /**
     * 发起时间
     */
    private Date requestTime;

    /**
     * 预计借阅时长（天）
     */
    private Integer expectedBorrowDuration;

    /**
     * 归还状态
     */
    private String returnStatus;
}
